#ifndef SUPPLIERSDIALOG_H
#define SUPPLIERSDIALOG_H

#include <QDialog>
#include <QStandardItemModel>

#include "database.h"

namespace Ui {
class suppliersDialog;
}

class suppliersDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit suppliersDialog(QStandardItemModel *mainModel,QStringList subProductsList, QWidget *parent = 0);
    ~suppliersDialog();
    
private slots:
    void on_AddSupplier_clicked();

    void on_InsertSupplier_clicked();

    void on_RemoveSupplier_clicked();

    void on_closeSupplier_clicked();

    void on_SaveSupplier_clicked();

    void on_CancelSupplier_clicked();

private:
    Ui::suppliersDialog *ui;
    QStandardItemModel *parentModel;
    QStandardItemModel *model;
};

#endif // SUPPLIERSDIALOG_H
